﻿using FluentNHibernate.Mapping;
using Model.Entities;

namespace DAL.Mappings
{
    public class RoomMap : ClassMap<Room>
    {
        public RoomMap()
        {
            Id(x => x.Id);
            Map(x => x.RoomGroup);
            Map(x => x.Mark);
            Map(x => x.Type).CustomType(typeof(TypeOfRoom));
            Map(x => x.Name);
            Map(x => x.AreaValue);
        }
    }
}
